<?php

namespace console\controllers;

use api\modules\v1\models\welfare\Welfare;
use common\models\config\ConfigAddress;
use common\models\config\ConfigGdAddress;
use common\models\data\DataStatistic;
use common\models\data\DataStatisticDaily;
use common\models\Functions;
use common\models\market\MarketTrade;
use common\models\mingyu\MingyuFreeze;
use common\models\redPacket\RedPacketLog;
use common\models\Status;
use common\models\user\UserActive;
use common\models\user\UserAppellation;
use common\models\user\UserAppellationLog;
use common\models\user\UserCityMaster;
use common\services\IM\tengxun\TxIm;
use common\services\position\PositionAliyun;
use console\models\contract\ContractOrder;
use console\models\RedPacket;
use console\models\User;
use yii\console\Controller;

/**
 * 测试使用
 * Class ToolsController
 * @package console\controllers
 */
class ToolsController extends Controller
{
    //发送财务信息
    public function actionTest() {
//        (new RedPacketLog())->sendMoneyMessage();
//        (new PositionAliyun())->mobilePosition('15563650050');

        $aa = file_get_contents("https://medium.com/@0xNorman");
        var_dump($aa);die;
    }

    //发送财务信息
    public function actionTestRedPacket() {
//        (new RedPacketLog())->sendMoneyMessage();
//        (new PositionAliyun())->mobilePosition('15563650050');

//        (new RedPacket())->buildRandomResults(10,5,0.65,1,1000);
//        (new RedPacket())->buildRandomResults(10,6,0.2,1,1000);
        (new RedPacket())->sendRedPacket(10,6,0.2,1,1000);
    }
}